/*
 * ThreadException.h
 *
 *  Created on: 9 déc. 2013
 *      Author: Raphaël
 */

#ifndef THREADEXCEPTION_H_
#define THREADEXCEPTION_H_

#include <exception>
#include <string>

namespace raph
{

class ThreadException: public std::exception
	{
	private:
		/*-------------------------------------------------------------------
		 attributs
		 -------------------------------------------------------------------*/
		std::string m_errorMsg;
	public:
		/*-------------------------------------------------------------------
		 constructor/destructor
		 -------------------------------------------------------------------*/
		ThreadException(const std::string &msg, int line = 0, const std::string& file = "");
		virtual ~ThreadException() noexcept;
		/*-------------------------------------------------------------------
		 public methods
		 -------------------------------------------------------------------*/
		const char* what() const noexcept;
	};

} /* namespace raph */

#endif /* THREADEXCEPTION_H_ */
